using System;
using System.Collections.Generic;
using System.Text;
using Core.Items;

namespace Core.Persistence
{
    public interface IPersistence
    {
        Guid GetRootElementId(string username);

        Guid Login(string username, string password);

        ToDoItem GetItem(Guid id);

        void StoreItem(ToDoItem item);

        void MoveItem(Guid item, Guid oldParent, Guid newParent);

        void UpdateItem(ToDoItem item);
        
    }
}
